<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>王二狗的简历</title>
  </head>
  <body>
    <style id="style"></style>
    <div id="demo"></div>
    <div id="div1"></div>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      #demo {
        word-break: break-all;
      }
      #div1 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      #div1::before {
        content: "";
        display: block;
        position: absolute;
      }
      #div1::after {
        content: "";
        display: block;
        position: absolute;
      }
      @media (max-width: 500px) {
        #demo {
          height: 90vh;
          overflow: auto;
        }
        #div1 {
          height: 10vh;
          position: relative;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 200px;
          height: 200px;
        }
        #div1::before {
          content: "";
          display: block;
          position: absolute;
          width: 100px;
          height: 100px;
        }
        #div1::after {
          content: "";
          display: block;
          position: absolute;
          width: 100px;
          height: 100px;
        }
      }
    </style>
    <script src="main.js"></script>
  </body>
</html>
